package pt.inescid.components.policyengine.heimdall.base;

import java.io.Serializable;

public class EventFieldCode implements Serializable {

	public static final int NODE_FIELD_ID = 10000;
	public static final int TAGS_FIELD_ID = 10001;

	private static int fieldIdCounter = 1;
	
	private int id;
	private String name;
	private int type;
	
	public EventFieldCode(String name, int type) {
		this.id = fieldIdCounter++;
		this.name = name;
		this.type = type;
	}
	public int getId() {
		return id;
	}
	public String getName() {
		return name;
	}
	public int getType() {
		return type;
	}
	public void setId(int id) {
		this.id = id;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setType(int type) {
		this.type = type;
	}
	
	public String toString() {
		return (id + "-" + name);
	}
	
}; // EventFieldCode
